package cn.hzking.gjmall.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

import cn.hzking.gjmall.net.base.BaseEntity;

/**
 * Created by Administrator on 2018/2/5.
 */

public class HomeDataBean extends BaseEntity{

    /**
     * data : {"carouse":[{"picUrl":"gj/shopSets/I105876ak35oeo2822736124_JPEibA.jpeg","targetUrl":"/shop/ajax/couponDetail/getCoupon.json?couponId=49"},{"picUrl":"gj/shopSets/I105876ak363mn2513711313_VLHAqq.jpeg","targetUrl":"/shop/ajax/couponDetail/getCoupon.json?couponId=102"},{"picUrl":"gj/shopSets/I105876ak36a4d2441102345_KhBfid.jpg","targetUrl":"/shop/ajax/couponDetail/getCoupon.json?couponId=94"},{"picUrl":"gj/shopSets/I105876ak36gl83713326677_PVJkBZ.jpeg","targetUrl":"/shop/ajax/couponDetail/getCoupon.json?couponId=101"},{"picUrl":"gj/shopSets/I105876ak5pofo2179065176_neydgf.jpg","targetUrl":"/shop/ajax/couponDetail/getCoupon.json?couponId=98"}],"headline":[{"gmtCreate":1517810704000,"id":0,"keys":"keys4","moduleOrder":0,"name":"优惠券领","offDate":32503651199000,"offState":1,"openDate":1517810704000,"openState":1,"softDelete":0,"state":1,"url":"/shop/ajax/couponDetail/getCouponPackage.json?couponPackageId=45","imgurl":""},{"gmtCreate":1517477962000,"id":0,"keys":"keys9","moduleOrder":0,"name":"抢购","offDate":32503651199000,"offState":1,"openDate":1517477962000,"openState":1,"softDelete":0,"state":1,"url":"/shop/itemQg.html?qgId=90"},{"gmtCreate":1517313502000,"id":0,"keys":"keys8","moduleOrder":0,"name":"黑五狂欢","offDate":32503651199000,"offState":1,"openDate":1517313502000,"openState":1,"softDelete":0,"state":1,"url":"/shop/ajax/couponDetail/getCoupon.json?couponId=57"},{"gmtCreate":1515467552000,"id":0,"keys":"keys6","moduleOrder":0,"name":"我是抢购","offDate":32503651199000,"offState":1,"openDate":1515467552000,"openState":1,"softDelete":0,"state":1,"url":"/shop/itemQg.html?qgId=71"},{"gmtCreate":1513304980000,"id":0,"keys":"keys3","moduleOrder":0,"name":"牛排专场","offDate":32503651199000,"offState":1,"openDate":1513304980000,"openState":1,"softDelete":0,"state":1,"url":"/shop/iteLtNo.html?categoryId=79"},{"gmtCreate":1517311657000,"id":0,"keys":"keys5","moduleOrder":0,"name":"手表专场","offDate":32503651199000,"offState":1,"openDate":1517311657000,"openState":1,"softDelete":0,"state":1,"url":"/shop/ajax/couponDetail/getCoupon.json?couponId=48"},{"gmtCreate":1515478166000,"id":0,"keys":"keys7","moduleOrder":0,"name":"口红面膜","offDate":32503651199000,"offState":1,"openDate":1515478166000,"openState":1,"softDelete":0,"state":1,"url":"/shop/seckllList.html?msId=83"},{"gmtCreate":1517814581000,"id":0,"imgurl":"","keys":"keys10","moduleOrder":0,"name":"aaa","offDate":32503651199000,"offState":1,"openDate":1517814581000,"openState":1,"softDelete":0,"state":1,"url":"/shop/iteLtNo.html?categoryId=80"}],"subarea":[{"desc":"恭祝商城开业大吉","image":"gj/shopSets/I105875mkf50542129563634_NMrziA.jpg","name":"全球line福","url":"/shop/seckllList.html?msId=70"},{"desc":"网红都在用","image":"gj/shopSets/I105875mkdpdpn1263900847_gQzkfs.jpg","name":"最in优品","url":"/shop/itemDetail.html?itemId=702"},{"desc":"国际大牌随心选","image":"gj/shopSets/I105875mkel6mp1899460510_TXXjzj.jpg","name":"品牌馆","url":"/shop/activity/activity.html?id=160"},{"desc":"购遍全球好货","image":"gj/shopSets/I105875mkf45io608178275_eBVzlS.jpg","name":"国家馆","url":"/shop/activity/activity.html?id=160"},{"desc":"最爱种新草","image":"gj/shopSets/I105875mkf1ii63498755451_tmTvdB.jpg","name":"热销榜","url":"/shop/iteLtNo.htm?categoryId=69"}],"template":[{"gmtCreate":1517810970968,"gmtDownLine":1522425600000,"gmtUpLine":946656000000,"gmtUpdate":1517813707490,"key":"keys1517810970968","score":9999,"state":0,"styleList":[{"imgUrl":"gj/temp/I105876p91m7bg3023491985_VSqmSf.jpg","price":20,"subTitle":"测试","title":"测试样式1","url":"/shop/ajax/couponDetail/getCouponPackage.json?couponPackageId=47"}],"templateName":"测试样式1","type":"FIRST"},{"gmtCreate":1517811026410,"gmtDownLine":1522425600000,"gmtUpLine":946656000000,"gmtUpdate":1517811682589,"key":"keys1517811026410","score":9998,"state":0,"styleList":[{"imgUrl":"gj/temp/I105876p91paf71749674802_rptWRw.jpeg","url":"/shop/activity/activity.html?id=154"},{"imgUrl":"gj/temp/I105876p92015n3747936755_UJFQfF.jpg","url":"\t/shop/itemDetail.html?itemId=710"},{"imgUrl":"gj/temp/I105876p920ppf956130860_eDowxr.jpg","url":"\t/shop/itemDetail.html?itemId=710"},{"imgUrl":"gj/temp/I105876p921c513721642739_JiKZAY.jpg","url":"\t/shop/itemDetail.html?itemId=685"},{"imgUrl":"gj/temp/I105876p921ok0524811620_VgfoCC.jpg","url":"\t/shop/itemDetail.html?itemId=685"},{"imgUrl":"gj/temp/I105876p922i1b3821224997_SNCeSR.png","url":"\t/shop/itemDetail.html?itemId=685"},{"imgUrl":"gj/temp/I105876p923il1927387713_ZAhVsJ.jpeg","url":"\t/shop/itemDetail.html?itemId=685"}],"templateName":"测试样式2","type":"SECOND"},{"gmtCreate":1517811137163,"gmtDownLine":1522425600000,"gmtUpLine":946656000000,"gmtUpdate":1517811723909,"key":"keys1517811137163","score":9997,"state":0,"styleList":[{"imgUrl":"gj/temp/I105876p925bn94037510442_JxHtXp.jpg","url":"/shop/activity/activity.html?id=158"},{"imgUrl":"gj/temp/I105876p925oh5659290238_HNqWuW.jpg","url":"/shop/iteLtNo.html?categoryId=79"},{"imgUrl":"gj/temp/I105876p9269h12347480846_KtXvcj.jpg","url":"/shop/activity/activity.html?id=158"},{"imgUrl":"gj/temp/I105876p926neo317095160_kwyqHx.jpg","url":"/shop/iteLtNo.html?categoryId=79"},{"imgUrl":"gj/temp/I105876p927a893767207011_HIgPNX.jpg","url":"/shop/activity/activity.html?id=158"}],"templateName":"测试样式3","type":"THIRD"},{"gmtCreate":1517797093603,"gmtDownLine":1522425600000,"gmtUpLine":946656000000,"gmtUpdate":1517811853424,"key":"keys1517797093603","score":9995,"state":0,"styleList":[{"imgUrl":"gj/temp/I105876p7nci002737274333_UCUAUp.jpg","url":""},{"imgUrl":"gj/temp/I105876p7nd3o13418363988_IXgNzc.jpg","url":"/shop/ajax/couponDetail/getCoupon.json?couponId=93"},{"imgUrl":"gj/temp/I105876p7nd8184206039705_YcCDri.jpg","url":"/shop/activity/activity.html?id=163"},{"imgUrl":"gj/temp/I105876p7ndeop676349691_gEqauP.jpg","url":"/shop/activity/activity.html?id=160"},{"imgUrl":"gj/temp/I105876p7ndj3b263742208_LjOQvs.jpg","url":"/shop/activity/activity.html?id=160"},{"imgUrl":"gj/temp/I105876p7ne16j1817738311_FnEHRR.jpg","url":"/shop/iteLtNo.html?categoryId=79"}],"templateName":"测试样式4","type":"FOURTH"},{"gmtCreate":1517811274863,"gmtDownLine":1522425600000,"gmtUpLine":946656000000,"gmtUpdate":1517814372279,"key":"keys1517811274863","score":9994,"state":0,"styleList":[{"imgUrl":"gj/temp/I105876p92d7272645056923_BIcnBQ.jpg","url":"/shop/iteLtNo.html?categoryId=80"},{"imgUrl":"gj/temp/I105876p92f4l23250766784_kopvyz.jpg","url":"/shop/activity/activity.html?id=155"},{"imgUrl":"gj/temp/I105876p92flob298253469_zKyROW.jpeg","url":"/shop/iteLtNo.html?categoryId=64"},{"imgUrl":"gj/temp/I105876p92ge05504249099_CGKasA.jpg","url":"/shop/activity/activity.html?id=155"},{"imgUrl":"gj/temp/I105876p92h4ei559633664_ooYunm.jpg","url":"/shop/iteLtNo.html?categoryId=64"},{"imgUrl":"gj/temp/I105876p92p101837079004_aTOgVL.jpg","url":"/shop/activity/activity.html?id=155"},{"imgUrl":"gj/temp/I105876p92jc70888684102_kYXLqc.jpg","url":"/shop/iteLtNo.html?categoryId=64"},{"imgUrl":"gj/temp/I105876p9304ck3503524018_BZqlzw.jpg","url":"/shop/activity/activity.html?id=155"},{"imgUrl":"gj/temp/I105876p930phk3401341273_LSjdaM.jpg","url":"/shop/iteLtNo.html?categoryId=64"},{"imgUrl":"gj/temp/I105876p931a3f1506734058_lodOnK.jpg","url":"/shop/activity/activity.html?id=154"},{"imgUrl":"gj/temp/I105876p931if5826879240_WpcHJx.jpg","url":"/shop/activity/activity.html?id=154"}],"templateName":"测试样式5","type":"FIFTH"}]}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<CarouseBean> carouse;
        private List<HeadlineBean> headline;
        private List<SubareaBean> subarea;
        private List<TemplateBean> template;

        public List<CarouseBean> getCarouse() {
            return carouse;
        }

        public void setCarouse(List<CarouseBean> carouse) {
            this.carouse = carouse;
        }

        public List<HeadlineBean> getHeadline() {
            return headline;
        }

        public void setHeadline(List<HeadlineBean> headline) {
            this.headline = headline;
        }

        public List<SubareaBean> getSubarea() {
            return subarea;
        }

        public void setSubarea(List<SubareaBean> subarea) {
            this.subarea = subarea;
        }

        public List<TemplateBean> getTemplate() {
            return template;
        }

        public void setTemplate(List<TemplateBean> template) {
            this.template = template;
        }

        public static class CarouseBean {
            /**
             * picUrl : gj/shopSets/I105876ak35oeo2822736124_JPEibA.jpeg
             * targetUrl : /shop/ajax/couponDetail/getCoupon.json?couponId=49
             */

            private String picUrl;
            private String targetUrl;

            public String getPicUrl() {
                return picUrl;
            }

            public void setPicUrl(String picUrl) {
                this.picUrl = picUrl;
            }

            public String getTargetUrl() {
                return targetUrl;
            }

            public void setTargetUrl(String targetUrl) {
                this.targetUrl = targetUrl;
            }
        }

        public static class HeadlineBean {
            /**
             * gmtCreate : 1517810704000
             * id : 0
             * keys : keys4
             * moduleOrder : 0
             * name : 优惠券领
             * offDate : 32503651199000
             * offState : 1
             * openDate : 1517810704000
             * openState : 1
             * softDelete : 0
             * state : 1
             * url : /shop/ajax/couponDetail/getCouponPackage.json?couponPackageId=45
             * imgurl :
             */

            private long gmtCreate;
            private int id;
            private String keys;
            private int moduleOrder;
            private String name;
            private long offDate;
            private int offState;
            private long openDate;
            private int openState;
            private int softDelete;
            private int state;
            private String url;
            private String imgurl;

            public long getGmtCreate() {
                return gmtCreate;
            }

            public void setGmtCreate(long gmtCreate) {
                this.gmtCreate = gmtCreate;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getKeys() {
                return keys;
            }

            public void setKeys(String keys) {
                this.keys = keys;
            }

            public int getModuleOrder() {
                return moduleOrder;
            }

            public void setModuleOrder(int moduleOrder) {
                this.moduleOrder = moduleOrder;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public long getOffDate() {
                return offDate;
            }

            public void setOffDate(long offDate) {
                this.offDate = offDate;
            }

            public int getOffState() {
                return offState;
            }

            public void setOffState(int offState) {
                this.offState = offState;
            }

            public long getOpenDate() {
                return openDate;
            }

            public void setOpenDate(long openDate) {
                this.openDate = openDate;
            }

            public int getOpenState() {
                return openState;
            }

            public void setOpenState(int openState) {
                this.openState = openState;
            }

            public int getSoftDelete() {
                return softDelete;
            }

            public void setSoftDelete(int softDelete) {
                this.softDelete = softDelete;
            }

            public int getState() {
                return state;
            }

            public void setState(int state) {
                this.state = state;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getImgurl() {
                return imgurl;
            }

            public void setImgurl(String imgurl) {
                this.imgurl = imgurl;
            }
        }

        public static class SubareaBean {
            /**
             * desc : 恭祝商城开业大吉
             * image : gj/shopSets/I105875mkf50542129563634_NMrziA.jpg
             * name : 全球line福
             * url : /shop/seckllList.html?msId=70
             */

            private String desc;
            private String image;
            private String name;
            private String url;

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }
        }

        public static class TemplateBean implements MultiItemEntity{
            public static final int FIRST = 0;
            public static final int SECOND = 1;
            public static final int THIRD = 2;
            public static final int FOUR = 3;
            public static final int FIVE = 4;
            /**
             * gmtCreate : 1517810970968
             * gmtDownLine : 1522425600000
             * gmtUpLine : 946656000000
             * gmtUpdate : 1517813707490
             * key : keys1517810970968
             * score : 9999
             * state : 0
             * styleList : [{"imgUrl":"gj/temp/I105876p91m7bg3023491985_VSqmSf.jpg","price":20,"subTitle":"测试","title":"测试样式1","url":"/shop/ajax/couponDetail/getCouponPackage.json?couponPackageId=47"}]
             * templateName : 测试样式1
             * type : FIRST
             */

            private long gmtCreate;
            private long gmtDownLine;
            private long gmtUpLine;
            private long gmtUpdate;
            private String key;
            private int score;
            private int state;
            private String templateName;
            private String type;
            private List<StyleListBean> styleList;

            public long getGmtCreate() {
                return gmtCreate;
            }

            public void setGmtCreate(long gmtCreate) {
                this.gmtCreate = gmtCreate;
            }

            public long getGmtDownLine() {
                return gmtDownLine;
            }

            public void setGmtDownLine(long gmtDownLine) {
                this.gmtDownLine = gmtDownLine;
            }

            public long getGmtUpLine() {
                return gmtUpLine;
            }

            public void setGmtUpLine(long gmtUpLine) {
                this.gmtUpLine = gmtUpLine;
            }

            public long getGmtUpdate() {
                return gmtUpdate;
            }

            public void setGmtUpdate(long gmtUpdate) {
                this.gmtUpdate = gmtUpdate;
            }

            public String getKey() {
                return key;
            }

            public void setKey(String key) {
                this.key = key;
            }

            public int getScore() {
                return score;
            }

            public void setScore(int score) {
                this.score = score;
            }

            public int getState() {
                return state;
            }

            public void setState(int state) {
                this.state = state;
            }

            public String getTemplateName() {
                return templateName;
            }

            public void setTemplateName(String templateName) {
                this.templateName = templateName;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public List<StyleListBean> getStyleList() {
                return styleList;
            }

            public void setStyleList(List<StyleListBean> styleList) {
                this.styleList = styleList;
            }

            @Override
            public int getItemType() {
                if("FIRST".equals(getType())){
                    return 0;
                }
                else if("SECOND".equals(getType())){
                    return 1;
                }
                else if("THIRD".equals(getType())){
                    return 2;
                }
                else if("FOURTH".equals(getType())){
                    return 3;
                }
                else if("FIFTH".equals(getType())){
                    return 4;
                }
                return -1;

            }

            public static class StyleListBean {
                /**
                 * imgUrl : gj/temp/I105876p91m7bg3023491985_VSqmSf.jpg
                 * price : 20
                 * subTitle : 测试
                 * title : 测试样式1
                 * url : /shop/ajax/couponDetail/getCouponPackage.json?couponPackageId=47
                 */

                private String imgUrl;
                private int price;
                private String subTitle;
                private String title;
                private String url;

                public String getImgUrl() {
                    return imgUrl;
                }

                public void setImgUrl(String imgUrl) {
                    this.imgUrl = imgUrl;
                }

                public int getPrice() {
                    return price;
                }

                public void setPrice(int price) {
                    this.price = price;
                }

                public String getSubTitle() {
                    return subTitle;
                }

                public void setSubTitle(String subTitle) {
                    this.subTitle = subTitle;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }
            }
        }
    }
}
